package javax.mail.search;

import com.getpebble.android.R;
import com.sun.mail.imap.protocol.ListInfo;
import com.sun.mail.smtp.SMTPMessage;

public abstract class IntegerComparisonTerm extends ComparisonTerm {
    protected int number;

    public int getNumber() {
        return this.number;
    }

    public int getComparison() {
        return this.comparison;
    }

    protected boolean match(int i) {
        switch (this.comparison) {
            case SMTPMessage.RETURN_FULL /*1*/:
                if (i > this.number) {
                    return false;
                }
                return true;
            case SMTPMessage.RETURN_HDRS /*2*/:
                if (i >= this.number) {
                    return false;
                }
                return true;
            case ListInfo.INDETERMINATE /*3*/:
                if (i != this.number) {
                    return false;
                }
                return true;
            case SMTPMessage.NOTIFY_DELAY /*4*/:
                if (i == this.number) {
                    return false;
                }
                return true;
            case R.styleable.WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance /*5*/:
                if (i <= this.number) {
                    return false;
                }
                return true;
            case R.styleable.WalletFragmentStyle_maskedWalletDetailsBackground /*6*/:
                return i >= this.number;
            default:
                return false;
        }
    }

    public boolean equals(Object obj) {
        if ((obj instanceof IntegerComparisonTerm) && ((IntegerComparisonTerm) obj).number == this.number && super.equals(obj)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return this.number + super.hashCode();
    }
}
